/**
 * 爬虫的测试
 *
 * @author bian
 * @createDate 2016.9.9
 */
var co = require("co");

var Spider = require("./index");
var config = require("./config.json");

var spider = new Spider(config.host,config.port);

var testSpider = function*(){
    yield spider.getAppsData();
    yield spider.getThingsData();
};

co(function*(){
    yield testSpider();
}).catch(function(err){
    console.error(err);
});